package org.tinygroup.sdpm.zhang.userController;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.tinygroup.sdpm.zhang.dao.inter.pojo.Goodsorder;
import org.tinygroup.sdpm.zhang.service.inter.GoodsOrderServiceInter;

@RestController
@RequestMapping("goodsOrder")
public class GoodsOrderController {
    @Autowired
    private GoodsOrderServiceInter goodsOrderServiceInter;

    @RequestMapping("order/{pk}")
    public Goodsorder getGoodsOrder(@PathVariable String pk){
        return goodsOrderServiceInter.getGoodsOrderById(pk);
    }
}
